import axios from "axios";

// 创建axios实例的方法
export function createAxios(options = {}) {
    return axios.create({ ...options });
}

export const AxiosServer = createAxios({
    baseURL: "http://localhost:3000",
    headers: {
      Authorization: "AUTH_TOKEN_INSTANCE",
    },
    timeout: 5000,
});